package com.android.sharecar.model;

import java.io.Serializable;

import android.graphics.Bitmap;
import android.location.Location;

/**
 * Model class for storing the user's favorite address
 * @author xinyan
 * @date 2011-10-18
 */
public class FavoriteAddress implements Serializable {
	public static final String TAG = "FavoriteAddress";

	private int addressId;

	// Address title and detail address
	private String addressTitle, address;

	// Icon that represents the address in FavoriteAddressActivity
	private Bitmap addressIcon;

	// The address's real location.
	private Location location;
	private User user;

	public String getAddressTitle() {

		return addressTitle;
	}

	public void setAddressTitle(String addressTitle) {
		this.addressTitle = addressTitle;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Bitmap getAddressIcon() {
		return addressIcon;
	}

	public void setAddressIcon(Bitmap addressIcon) {
		this.addressIcon = addressIcon;
	}

	public Location getLocation() {
		return location;
	}

	public void setLocation(double lon, double lat) {

		this.location.setLatitude(lat);
		this.location.setLongitude(lon);
	}

	public int getAddressId() {
		return addressId;
	}

	public void setAddressId(int addressId) {
		this.addressId = addressId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
